home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / doc / acpid / README.Debian < prev    next >
Encoding:
Text File  |  2007-03-14  |  1.3 KB  |  40 lines

  1. acpid for Debian
  2. ================
  3.  
  4. Kernel requirements:
  5. - Unpatched 2.4.x where x >= 7
  6. - Unpatched 2.5.x should work, not tested
  7. - Using acpi patches from http://sourceforge.net/project/acpi. The newest is your friend.
  8.  
  9. General:
  10. The acpid daemon now handles user defined events, too. Place event files
  11. under /etc/acpi/events.
  12.  
  13. If an event occurs, acpid recurses through the event files in order to
  14. see if the regex defined after "event" matches. If they do, action is
  15. executed.
  16.  
  17. Example: /etc/acpi/events/power
  18.  
  19. # This file handles the actions for the power button
  20. event=button power.*
  21. action=/sbin/init 0
  22.  
  23. # This is the new style, introduced by the acpi patch acpi-20020329.
  24. #event=button/power .*
  25. #action=/sbin/init 0
  26.  
  27. NOTE: This has changed in acpi development code! See /etc/acpi/default.sh
  28.       for more information.
  29.  
  30. Your script will get the complete event string (as reported by
  31. /proc/acpid/events), if you use %e as a parameter of your script.
  32. You may want to split this by calling set $*. $1 then holds the
  33. event group, $2 takes the event and $3 and $4 take the values as
  34. reported by the kernel.
  35.  
  36. When using acpid with modules, you can use /etc/default/acpid in order
  37. to specify modules to be loaded at startup.
  38.  
  39. Cajus Pollmeier <cajus@debian.org>, Fri, 08 Sept 2001 11:58:48 +0200
  40.